﻿using X.WPF.Controls.Constants;
using X.WPF.Controls.Enums;
using X.WPF.Controls.Models;

namespace X.WPF.Controls.Services
{
    /// <summary>
    /// WPF组件库3D常量
    /// </summary>
    public class ThreeDService
    {

        #region 获取默认相机 —— static ThreeDCamera GetDefaultCamera(ThreeDUpDirection threeDUpDirection)
        /// <summary>
        /// 获取默认相机
        /// </summary>
        public static ThreeDCamera GetDefaultCamera(ThreeDUpDirection threeDUpDirection)
        {
            ThreeDCamera result = threeDUpDirection switch
            {
                ThreeDUpDirection.X => ThreeDConstants.UpDirectionXDefaultCamera,
                ThreeDUpDirection.Y => ThreeDConstants.UpDirectionYDefaultCamera,
                ThreeDUpDirection.Z => ThreeDConstants.UpDirectionZDefaultCamera,
                _ => ThreeDConstants.UpDirectionYDefaultCamera,
            };

            return result;
        }
        #endregion 

    }
}
